package com.sunyard.pcc.dal.mapper;

import com.sunyard.pcc.dal.model.SysDeptDO;
import com.sunyard.pcc.dal.query.SysDeptQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * MyBatis Mapper for SysDept.
 */
@Mapper
@Repository
public interface SysDeptMapper {

    /**
     * query count by query condition.
     */
    int countByQuery(SysDeptQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysDeptQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysDeptDO record);

    /**
     * insert selective.
     */
    int insertSelective(SysDeptDO record);

    /**
     * select by query condition.
     */
    List<SysDeptDO> selectByQuery(SysDeptQuery query);

    /**
     * select by primary key.
     */
    SysDeptDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") SysDeptDO record, @Param("query") SysDeptQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") SysDeptDO record, @Param("query") SysDeptQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysDeptDO record);
}